package com.kj.tms.common.utils.constant;

/**
 * @Author:zhuyongjie
 * @Description:台账相关常量
 * @Date:Create in  2017/10/24 11:53
 */
public class LedgerConstant {
    /***********表间关系常量 STRART*****************/
    //表达式规则开始标识
    public static final String FORMULA_START_MARK = "[";
    //表达式规则结束标识
    public static final String FORMULA_END_MARK = "]";
    //SUM计算标识
    public static final String FORMULA_SUM_MARK = "SUM";
    //SUM开始
    public static final String FORMULA_SUM_START_MARK = "(";
    //SUM结束
    public static final String FORMULA_SUM_END_MARK = ")";
    //SUM单元格分隔符
    public static final String FORMULA_SUM_CELL_SPLIT_MARK = ":";
    //表名与单元格分割标识，英文感叹号
    public static final String TABLE_SPLIT_CELL = "!";
    //单元格序号分隔符，英文下划线
    public static final String CELL_SPLIT_INDEX = "_";
    //表名驼峰命名分割符
    public static final String TABLE_SPLIT_DATABASE = "_";

    /***********表间关系常量 END*****************/

    /***********取数属期配置常量 START***********/
    //本期
    public static final String PEROID_CURRENT = "01";
    //上期
    public static final String PRIOR_PERIOD = "10";
    //上期-首期不取数
    public static final String PRIOR_PERIOD_FIRST = "11";
    //上期-年度首期不取数
    public static final String PRIOR_PERIOD_YEAR_FIRST = "12";
    //上年同期
    public static final String LASTYEAR_SAME_PERIOD = "20";
    //上年末期
    public static final String LASTYEAR_END_PERIOD = "30";

    /***********取数属期配置常量 END***********/

    // 最终结果默认精度定义
    public static final int DEF_RESULT_PRECISION = 4;
    // 保存到数据库精确位数
    public static final  int DEF_SAVEINSTANT_PRECISION=2;
    // 中间数据默认精度定义
    public static final int DEF_MIDDLE_PRECISION = 4;


    /***********申报事项创建相关常量***************/
    //属期id为空
    public static final String MATTER_PERIOD_IDNULL = "属期主键为空";
    //未查询到属期
    public static final String MATTER_PERIOD_NULL = "未查询到属期";
    //未查询到申报单位
    public static final String MATTER_BUSINESS_NULL = "未查询到申报单位设置";
    //未查询到取数来源设置
    public static final String MATTER_BUSINESS_SRC_NULL = "未查询到数据来源机构设置";
    //未查询到台账设置
    public static final String MATTER_BUSINESS_LEDGE_NULL = "未查询到关联台账设置";
    //未查询到申报单位流程配置
    public static final String MATTER_BUSINESS_FLOW_NULL = "未查询到流程配置";
    //未查询到流程环节定义
    public static final String MATTER_FLOW_TASK_DEF_NULL = "未配置流程节点定义";
    //未配置本属期台账
    public static final String MATTER_LEDGER_NULL = "未配置本属期台账";

    /***********申报事项创建相关常量 END***************/

    /**************台账加载异常常量******************/
    //未配置台账表单
    public static final String LEDGER_FORM_DEF_NULL_CODE = "1001";
    public static final String LEDGER_FORM_DEF_NULL_MSG = "未配置本属期台账表单";
    //不存在事项
    public static final String LEDGER_MATTER_NULL_CODE = "1002";
    public static final String LEDGER_MATTER_NULL_MSG = "不存在事项";
    //执行表间关系失败
    public static final String LEDGER_EXTERNAL_ERROR_CODE = "1003";
    public static final String LEDGER_EXTERNAL_ERROR_MSG = "执行表间关系失败";
    //执行表内关系失败
    public static final String LEDGER_WINTHIN_ERROR_CODE = "1004";
    public static final String LEDGER_WINTHIN_ERROR_MSG = "执行表内关系失败";
    //删除实例表数据失败
    public static final String LEDGER_INST_DELETE_ERROR_CODE = "1005";
    public static final String LEDGER_INST_DELETE_ERROR_MSG = "删除实例表数据失败";
    //保存实例表数据失败
    public static final String LEDGER_INST_SAVE_ERROR_CODE = "1006";
    public static final String LEDGER_INST_SAVE_ERROR_MSG = "保存实例表数据失败";
    //台账信息为空
    public static final String LEDGER_INFO_NULL_CODE = "1007";
    public static final String LEDGER_INFO_NULL_MSG = "台账信息为空";
    //表外执行失败
    public static final String LEDGER_OUTSIDE_ERROR_CODE = "1008";
    public static final String LEDGER_OUTSIDE_ERROR_MSG = "执行表外关系失败";

    /**************台账加载异常常量 END*************/

    /********************事项撤回参数****************/
    //事项已结束
    public static final String MATTER_ROLLBACK_END_CODE = "1001";
    public static final String MATTER_ROLLBACK_END_MSG = "事项已结束不允许撤回";
    //不可撤回环节
    public static final String MATTER_ROLLBACK_NULL_CODE = "1002";
    public static final String MATTER_ROLLBACK_NULL_MSG = "当前环节不允许撤回";
    //符合撤回条件
    public static final String MATTER_ROLLBACK_ACCORD_CODE = "1003";
    public static final String MATTER_ROLLBACK_ACCORD_MSG = "符合撤回条件";
    //撤回成功
    public static final String MATTER_ROLLBACK_SUCCESS_CODE = "1004";
    public static final String MATTER_ROLLBACK_SUCCESS_MSG = "撤回成功";

    /********************事项撤回参数 END ***********/

    //台账组重复
    public static final String LEDGER_GROUP_REPEAT = "10001";

}
